From: Michael Catanzaro Date: Sun, 27 Jul 2025 14:44:02 +0000 (+0200) Subject: portalHelper: Reduce the connectivity check rate limit X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~112^2^2~24 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1c80a4f213faef5170c3af6720d1e6d623fc45ad;p=gnome-shell.git portalHelper: Reduce the connectivity check rate limit 30 seconds is much too long for GNOME Shell to notice that full connectivity has been achieved. The portal helper is expected to be closed once connectivity is achieved. Note this does NOT mean we unconditionally spam the connectivity check server every 5 seconds. A connectivity check is still only scheduled when an actual navigation occurs. Part-of: --- diff --git a/js/portalHelper/main.js b/js/portalHelper/main.js index af49d51a4..9d420138c 100644 --- a/js/portalHelper/main.js +++ b/js/portalHelper/main.js @@ -35,7 +35,7 @@ const HTTP_URI_FLAGS = const CONNECTIVITY_CHECK_HOST = 'nmcheck.gnome.org'; const CONNECTIVITY_CHECK_URI = `http://${CONNECTIVITY_CHECK_HOST}`; -const CONNECTIVITY_RECHECK_RATELIMIT_TIMEOUT = 30 * GLib.USEC_PER_SEC; +const CONNECTIVITY_RECHECK_RATELIMIT_TIMEOUT = 5 * GLib.USEC_PER_SEC; const HelperDBusInterface = loadInterfaceXML('org.gnome.Shell.PortalHelper');